package com.hsh.gaoqianlianmeng.service.impl;

import com.hsh.gaoqianlianmeng.common.Result;
import com.hsh.gaoqianlianmeng.constants.filepath.GlobalPathConstants;
import com.hsh.gaoqianlianmeng.domain.Express;
import com.hsh.gaoqianlianmeng.domain.Shop;
import com.hsh.gaoqianlianmeng.service.ExpressService;
import com.hsh.gaoqianlianmeng.service.ShopService;
import com.hsh.gaoqianlianmeng.utils.POIExcelUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 快递 Service
 */
@Service
public class ExpressServiceImpl implements ExpressService {

    @Override
    public Result<List<Express>> getExpress() {
        List<Express> expresses = POIExcelUtils.read(GlobalPathConstants.GLOBAL_FOLDER + GlobalPathConstants.EXPRESS_LIST, Express.class);
        return Result.success(expresses);
    }
}
